﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Common.Logging;
using Quartz;

namespace QuartzFramework
{
    class Program
    {
        static void Main(string[] args)
        {
            ILog logger = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
            logger.Info("我是 info");
            logger.Debug("我是 Debug");
            logger.Error("我是 Error");
            IScheduler sched;
            ISchedulerFactory sf = new Quartz.Impl.StdSchedulerFactory();
            sched = sf.GetScheduler();
            sched.Start();
            logger.Info("Quartz服务成功启动");

        }
    }
}
